package main

import "fmt"

//逆推
func main() {
var f [49]float64
f[48] = 3000

	for i:=47; i >0;i-- {
		f[i]=(f[i+1]+float64(3000))/float64(1+0.0171/12)
	}
	 
	for i:=0; i < len(f);i++ {
		fmt.Printf("第[%d]个月有%d\n",i,f[i])
	}
	
	
}